<template>
  <div id="qianqichjgcs" class="app-container">
    <div class="tabs dachuShenChaBox">
      <el-tabs v-model="activeName">
        <el-tab-pane label="图件审查" name="1" />
        <el-tab-pane label="附件审查" name="2" />
      </el-tabs>
      <div class="dachuShenCha">
        <div class="dachuShenCha_item" @click="exportYijian">
          <i class="el-icon-upload2" /> 导出审查意见
        </div>
        <div v-if="!isLook" class="dachuShenCha_item" @click="exportOpinion">
          <i class="el-icon-document-checked" /> 校验审查意见
        </div>
      </div>
    </div>
    <div v-show="activeName == '1'" v-loading="listLoading" class="tdMap-box">
      <tdMap
        ref="tdMap"
        :pk-list="list"
        :xian-zhuang-path="xianZhuangFliePath"
        :cuowu-list="cuowuListData"
        :yijian-info="yijianInfoData"
        :is-look="isLook"
        layer-name="LandConstructPlan"
        link-value="CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT"
      >
        <template slot="buttonGroup">
          <!-- <el-button @click="handleXzViewInto" size="medium">现状图</el-button> -->
          <el-dropdown class="CAD" @command="handleXzViewInto">
            <el-button class="line" size="medium">
              CAD查看
              <i class="el-icon-arrow-down el-icon--right" />
            </el-button>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item command="1">工程布局图</el-dropdown-item>
              <el-dropdown-item command="2">规划图</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
          <!-- <el-button @click="handleXzViewInto(1)" size="medium">工程布局图</el-button> -->
          <!-- <el-button @click="handleXzViewInto(2)" size="medium">规划图</el-button> -->
        </template>

        <div v-if="curIndex != null" slot="popupBaseInfo">
          <table cellspacing="0" class="tableBasicInfo">
            <tr>
              <th>权利人</th>
              <td>{{ list[curIndex].qlr }}</td>
            </tr>
            <tr>
              <th>红线面积</th>
              <td>{{ list[curIndex].hxmj | M2 }}</td>
            </tr>
            <tr>
              <th>宅基地面积</th>
              <td>{{ list[curIndex].nczjd | M2 }}</td>
            </tr>
            <tr>
              <th>宅基地附属用地面积</th>
              <td>{{ list[curIndex].zjdfs | M2 }}</td>
            </tr>
            <tr>
              <th>预计减少建设用地面积</th>
              <td>{{ list[curIndex].yjjsj | M2 }}</td>
            </tr>
            <tr>
              <th>预计增加农用地面积</th>
              <td>{{ list[curIndex].yjzjn | M2 }}</td>
            </tr>
            <tr>
              <th>预计增加耕地面积</th>
              <td>{{ list[curIndex].yjzjg | M2 }}</td>
            </tr>
            <tr>
              <th>预计增加林地面积</th>
              <td>{{ list[curIndex].yjzjl | M2 }}</td>
            </tr>
            <tr>
              <th>预计增加园地面积</th>
              <td>{{ list[curIndex].yjzjy | M2 }}</td>
            </tr>
            <tr>
              <th>预计增加其他农用地面积</th>
              <td>{{ list[curIndex].yjzjq | M2 }}</td>
            </tr>
            <tr>
              <th>权属单位</th>
              <td>{{ list[curIndex].qsdw }}</td>
            </tr>
            <tr>
              <th>图幅号</th>
              <td>{{ list[curIndex].tfh }}</td>
            </tr>
            <tr>
              <th>图斑号</th>
              <td>{{ list[curIndex].tbh }}</td>
            </tr>
            <tr>
              <th>图斑面积</th>
              <td>{{ list[curIndex].tbdlm | M2 }}</td>
            </tr>
            <tr>
              <th>小地名</th>
              <td>{{ list[curIndex].xdm }}</td>
            </tr>
          </table>

          <!-- <div class="allShenchaTuBtn">
            <el-button
              type="text"
              @click="toSeeXianZhuang(list[curIndex],1)"
              size="small"
            >{{list[curIndex].projectConstructingPlanResultFirstAudit!=null?(list[curIndex].projectConstructingPlanResultFirstAudit.engineeringOpionionStatus=="AUDIT"?'审查工程布局图':list[curIndex].projectConstructingPlanResultFirstAudit.engineeringOpionionStatus=="VIEW"?'查看工程布局图':'审查工程布局图'):'审查工程布局图'}}</el-button>
            <el-button
              type="text"
              @click="toSeeXianZhuang(list[curIndex],2)"
              size="small"
            >{{list[curIndex].projectConstructingPlanResultFirstAudit!=null?(list[curIndex].projectConstructingPlanResultFirstAudit.planningOpionionStatus=='AUDIT'?'审查规划图':list[curIndex].projectConstructingPlanResultFirstAudit.planningOpionionStatus=='VIEW'?'查看规划图':'审查规划图'):'审查规划图'}}</el-button>
          </div>-->
        </div>
        <div slot="popupJgInfo">
          <div class="zonghexinxiFirst zonghexinxiItem">
            <div class="zonghexinxiLeft">规划评审</div>
            <div class="item-box" v-if="jgInfoData.xctk != '' || jgInfoData.xctk != null">
              <div
                class="one-item one-item-item item-box-firstItem"
              >规划设计方案评审时间：{{ jgInfoData.xctk.time }}</div>
              <div
                class="one-item one-item-item item-box-firstItem"
              >规划设计方案评审位置信息：{{ jgInfoData.xctk.place }}</div>
              <div class="one-item one-item-item item-box-firstItem">
                规划设计方案是否通过：
                <el-checkbox :value="jgInfoData.xctk.yesOrNo == 'YES' ? true : false"></el-checkbox>
              </div>
              <div class="table-box">
                <div class="table-box-left table-box-item">踏勘指界资料</div>
                <div class="table-box-right table-box-item">
                  <ul class="ziliaoList">
                    <li
                      @click="handleImageDialog(item)"
                      v-for="(item, index) in jgInfoData.xctkList"
                      :key="index"
                    >{{ item.name }}</li>
                  </ul>
                </div>
              </div>
            </div>
            <div v-else class="no-data">暂无信息</div>
          </div>
        </div>
      </tdMap>
    </div>

    <fujian
      v-show="activeName == '2'"
      ref="fujianChild"
      :isLook="isLook"
      :fujianList="fujianList"
      :cuowuList="cuowuList"
      :linkValue="linkValue"
    ></fujian>

    <el-dialog
      :close-on-click-modal="false"
      title="审查意见"
      :visible.sync="shenchaFlag"
      :before-close="handleClose"
      class="shenChaTanKuang"
    >
      <div class="shenChaContent">
        <div class="shenchaItem">
          <p>该片块图件是否为遗漏复垦点：</p>
          <div class="shenchaItem_item">
            <el-radio v-model="itemDataForTable.isMissingReclaimPoint" label="YES">是</el-radio>
            <el-radio v-model="itemDataForTable.isMissingReclaimPoint" label="NO">否</el-radio>
          </div>
        </div>
        <div class="shenchaItem">
          <p>审定规模与送审规模是否一致：</p>
          <div class="shenchaItem_item">
            <el-radio
              @change="isShowThreeInput"
              v-model="itemDataForTable.isIdenticalScale"
              label="YES"
            >是</el-radio>
            <el-radio
              @change="isShowThreeInput"
              v-model="itemDataForTable.isIdenticalScale"
              label="NO"
            >否</el-radio>
          </div>
        </div>
        <div class="shenchaItem_item_noFlex">
          <p>审增(减)原因：</p>
          <div class="shenchaItem_item">
            <el-input
              class="shenchaItem_item_textarea"
              type="textarea"
              :rows="5"
              placeholder="请输入内容"
              v-model="itemDataForTable.auditScaleChangeReason"
            ></el-input>
          </div>
        </div>

        <div class="shenchaItem_small shenchaItem" v-if="showThreeFlag">
          <p>宅基地：</p>
          <div class="shenchaItem_item shenchaItem_item_input">
            <el-input
              class="shenchaItem_item_textarea"
              placeholder="请输入内容"
              v-model="itemDataForTable.homestead"
            ></el-input>
          </div>
        </div>
        <div class="shenchaItem_small shenchaItem" v-if="showThreeFlag">
          <p>附属用地：</p>
          <div class="shenchaItem_item shenchaItem_item_input">
            <el-input
              class="shenchaItem_item_textarea"
              placeholder="请输入内容"
              v-model="itemDataForTable.attachedLand"
            ></el-input>
          </div>
        </div>
        <div class="shenchaItem_small shenchaItem" v-if="showThreeFlag">
          <p>其他：</p>
          <div class="shenchaItem_item shenchaItem_item_input">
            <el-input
              class="shenchaItem_item_textarea"
              placeholder="请输入内容"
              v-model="itemDataForTable.other"
            ></el-input>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer" v-if="!isLook">
        <el-button @click="shenchaFlag = false">取 消</el-button>
        <el-button
          v-loading.fullscreen.lock="fullscreenLoading"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.8)"
          type="primary"
          @click="submitYj1"
        >确 定</el-button>
      </span>
    </el-dialog>
    <el-dialog
      :close-on-click-modal="false"
      title="外业审查意见"
      :visible.sync="shenchaFlag1"
      :before-close="handleClose1"
      class="shenChaTanKuang"
    >
      <div class="shenChaContent">
        <div class="wyJibenxinxi">
          <div class="zonghexinxiFirst zonghexinxiItem">
            <div class="zonghexinxiLeft">外业信息</div>
            <div class="item-box" v-if="jgInfoData.xctk != '' || jgInfoData.xctk != null">
              <div
                class="one-item one-item-item item-box-firstItem"
              >规划设计方案评审时间：{{ jgInfoData.xctk.time }}</div>
              <div
                class="one-item one-item-item item-box-firstItem"
              >规划设计方案评审位置信息：{{ jgInfoData.xctk.place }}</div>
              <div class="one-item one-item-item item-box-firstItem">
                规划设计方案是否通过：
                <el-checkbox :value="jgInfoData.xctk.yesOrNo == 'YES' ? true : false"></el-checkbox>
              </div>
              <div class="table-box">
                <div class="table-box-left table-box-item">外业指界资料</div>
                <div class="table-box-right table-box-item">
                  <ul class="ziliaoList">
                    <li
                      @click="handleImageDialog(item)"
                      v-for="(item, index) in jgInfoData.xctkList"
                      :key="index"
                    >{{ item.name }}</li>
                  </ul>
                </div>
              </div>
            </div>
            <div v-else class="no-data">暂无信息</div>
          </div>
        </div>
        <div class="shenchaItem">
          <p>是否通过：</p>
          <div class="shenchaItem_item">
            <el-radio-group v-model="waiyeObj.waiyeRadio">
              <el-radio label="YES">是</el-radio>
              <el-radio label="NO">否</el-radio>
            </el-radio-group>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer" v-if="!isLook">
        <el-button @click="shenchaFlag1 = false">取 消</el-button>
        <el-button
          v-loading.fullscreen.lock="fullscreenLoading"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.8)"
          type="primary"
          @click="submitWy"
        >确 定</el-button>
      </span>
    </el-dialog>
    <!-- 综合监管信息图片 -->
    <el-dialog :close-on-click-modal="false" :title="dialogImageUrlTitle" :visible.sync="dialogVisible">
      <img width="100%" :src="$https + dialogImageUrl" />
    </el-dialog>
  </div>
</template>

<script>
import {
  queryLandResultAuditInfo,
  queryProjectResultAuditInfo,
  query_enclosure_info,
  getOpinionType,
  auditProjectResultAttachmentInfo,
  exportReviewOpinion,
  supervisingInfo,
  auditLandEngineeringMap,
  auditLandPlanningMap,
  onePlanningMap,
  queryLandEngineeringMap,
  queryLandPlanningMap,
  ghAuditLandOuterInfo
} from '@/api/ghsjAndssfaPingShen'
import { setTimeout } from 'timers'
import tdMap from '@/components/tdMap'
import fujian from '@/components/fujianList'

export default {
  filters: {
    statusFilter(status) {
      const statusMap = {
        published: 'success',
        draft: 'gray',
        deleted: 'danger'
      }
      return statusMap[status]
    }
  },
  components: {
    tdMap,
    fujian
  },
  data() {
    return {
      linkValue: 'CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT',
      cuowuListData: [],
      xianZhuangFliePath: '',
      waiyeObj: {
        waiyeRadio: '',
        landId: ''
      },
      shenchaFlag1: false,
      fullscreenLoading: false, //全屏加载
      cuowuList: [], //错误类型数组
      radio: 'YES', //该片块图件是否为遗漏复垦点
      radio1: 'YES', //审定规模与送审规模是否一致
      textarea: '',
      value: '',
      showChaKan: false, //显示隐藏查看框
      data: [
        {
          id: 1,
          label: '土地利用规划',
          children: [
            {
              id: 8,
              label: '总体规划'
            },
            {
              id: 9,
              label: '管理区规划'
            },
            {
              id: 10,
              label: '土地整治规划'
            }
          ]
        },
        {
          id: 2,
          label: '土地利用现状',
          children: [
            {
              id: 5,
              label: '2018年'
            },
            {
              id: 6,
              label: '2017年'
            }
          ]
        }
      ],
      activeName: '1',
      list: null,
      listLoading: false,
      listQuery: {
        page: 1,
        size: 10,
        projectId: localStorage.getItem('projectId')
      },
      total: 0, //总数
      defaultProps: {
        children: 'children',
        label: 'label'
      },
      shenchaFlag: false, //审查弹框控制
      showThreeFlag: false, //是否显示三个输入框
      fujianList: [], //附件数组

      itemData: '', //单个附件的数据
      yijianValue: '', //意见值
      yijianContent: '', //意见内容
      itemDataForTable: {
        landId: '', //片块ID
        isIdenticalScale: '', //审定规模与送审规模是否一致,可用值:YES,NO
        isMissingReclaimPoint: '', //是否为遗漏复垦点,可用值:YES,NO
        auditScaleChangeReason: '', //审减（增）原因，有原因时填写
        attachedLand: '', //附属用地
        homestead: '', //宅基地
        other: '' //其他
      },

      isOpinionValueShow: true,

      mapConfig: {
        map: null,
        lng: 106.55,
        lat: 29.57,
        zoom: 10,
        lay: null
      },
      T: null,

      isLoading: false,

      isDwg: false,
      isLook: false,

      curIndex: null,
      jgInfoData: {
        //监管信息数据
        xctk: '',
        xctkList: [],
        page: 1,
        size: 10
      },
      dialogVisible: false,
      dialogImageUrl: null,
      dialogImageUrlTitle: '查看图片',
      nowType: 1,
      yijianInfoData: {
        yijianValue: '',
        yijianContent: '',
        status: ''
      },
      //假装加载地图
      loadIfram: 1
    }
  },
  created() {
    if (
      localStorage.getItem('router') == 'CONSTRUCTING_PLAN_RESULT_FIRST_AUDIT'
    ) {
      this.isLook = false
    } else {
      this.isLook = true
    }

    if(localStorage.getItem("lookStatus") == 2){
      this.isLook = true
    }
    this.getData()
    this.getFujian()
    this.getOpinionType()
  },
  methods: {
    //关闭现状图
    guanbiXianZhuang() {
      this.xianZhuangFliePath = ''
    },
    //打开现状图
    handleXzViewInto(num) {
      this.nowType = Number(num)
      this.$refs.tdMap.handleXzView()
    },
    //问题记录
    wentijilu(row) {
      var that = this
      var data = {
        landId: row.landId,
        opinionType: row.yijianValue,
        opinion: row.yijianContent
      }
      if (this.nowType == 1) {
        auditLandEngineeringMap(data)
          .then(res => {
            this.$refs.tdMap.closeXianZhuang()
            this.$refs.tdMap.closeMapIframe()
            if (res.code == 1000) {
              this.$message({
                message: '提交成功',
                type: 'success'
              })
            }
          })
          .catch(error => {
            this.$refs.tdMap.closeXianZhuang()
          })
      } else if (this.nowType == 2) {
        auditLandPlanningMap(data)
          .then(res => {
            this.$refs.tdMap.closeXianZhuang()
            if (res.code == 1000) {
              this.$message({
                message: '提交成功',
                type: 'success'
              })
            }
          })
          .catch(error => {
            this.$refs.tdMap.closeXianZhuang()
          })
      } else if (this.nowType == 3) {
        onePlanningMap(data)
          .then(res => {
            this.$refs.tdMap.closeXianZhuang()
            if (res.code == 1000) {
              this.$message({
                message: '提交成功',
                type: 'success'
              })
              setTimeout(function() {
                that.$router.back(-1)
              }, 1200)
            }
          })
          .catch(error => {
            this.$refs.tdMap.closeXianZhuang()
          })
      }
    },
    getCurListIndex(index) {
      //片块基本信息
      this.curIndex = index
      this.getJgInfo()
    },
    handleImageDialog(item) {
      this.dialogImageUrl = item.path
      this.dialogImageUrlTitle = item.name
      this.dialogVisible = true
    },
    //获取综合监管信息
    getJgInfo() {
      let obj = {
        page: this.jgInfoData.page,
        size: this.jgInfoData.size,
        projectId: localStorage.getItem('projectId')
      }
      supervisingInfo(obj).then(res => {
        this.jgInfoData.xctkList = [
          { name: '评审现场照片', path: res.data.livePhotoPath },
          { name: '专家签字照片', path: res.data.signPhotoPath }
        ]

        this.jgInfoData.xctk = res.data
      })
    },
    //打开外业审查意见弹框
    shenchaWy(row) {
      this.getJgInfo()
      this.waiyeObj.landId = row.landId
      if (
        row.projectConstructingPlanResultFirstAudit
          .isStoringRecordInspectionStatus == 'VIEW'
      ) {
        this.waiyeObj.waiyeRadio =
          row.projectConstructingPlanResultFirstAudit.isStoringRecordInspection
      } else if (
        row.projectConstructingPlanResultFirstAudit
          .isStoringRecordInspectionStatus == 'AUDIT'
      ) {
        this.waiyeObj.waiyeRadio = ''
      }
      this.shenchaFlag1 = true
    },
    //提交外业意见
    submitWy() {
      let obj = {
        landId: this.waiyeObj.landId,
        projectId: localStorage.getItem('projectId'),
        isStoringRecordInspection: this.waiyeObj.waiyeRadio
      }
      this.fullscreenLoading = true
      ghAuditLandOuterInfo(obj)
        .then(res => {
          this.fullscreenLoading = false
          if (res.code == 1000) {
            this.$message({
              message: '审查成功',
              type: 'success'
            })
            this.shenchaFlag1 = false
            this.getData()
          }
        })
        .catch(error => {
          this.fullscreenLoading = false
        })
    },
    //关闭外业意见
    handleClose1() {
      this.shenchaFlag1 = false
    },
    exportYijian() {
      // 导出意见
      this.$refs.tdMap.handleExportOpinion()
    },
    //校验意见
    exportOpinion() {
      this.$refs.tdMap.handleCheckOpinion({
        stage: 'LandConstructPlan',
        path: '/xmkgh/ywdeal'
      })
    },
    //提交意见(列表)
    submitYj1() {
      this.fullscreenLoading = true
      var that = this
      var itemDataForTable = this.itemDataForTable
      var data = {
        landId: itemDataForTable.landId,
        isIdenticalScale: itemDataForTable.isIdenticalScale,
        isMissingReclaimPoint: itemDataForTable.isMissingReclaimPoint,
        auditScaleChangeReason: itemDataForTable.auditScaleChangeReason,
        attachedLand: itemDataForTable.attachedLand,
        homestead: itemDataForTable.homestead,
        other: itemDataForTable.other
      }
      auditLandResultInfo(data).then(res => {
        this.fullscreenLoading = false
        if (res.code == 1000) {
          this.$message({
            message: '审查成功',
            type: 'success'
          })
          that.getData()
          that.shenchaFlag = false
          that.itemDataForTable = {
            landId: '', //片块ID
            isIdenticalScale: '', //审定规模与送审规模是否一致,可用值:YES,NO
            isMissingReclaimPoint: '', //是否为遗漏复垦点,可用值:YES,NO
            auditScaleChangeReason: '', //审减（增）原因，有原因时填写
            attachedLand: '', //附属用地
            homestead: '', //宅基地
            other: '' //其他
          }
        }
      })
    },
    //提交意见(附件)
    submitYj() {
      var that = this
      this.fullscreenLoading = true
      var data = {
        projectId: localStorage.getItem('projectId'),
        opinion: this.yijianContent,
        opinionType: this.yijianValue,
        enclosureType: this.itemData.code,
        enclosureId: this.itemData.id
      }
      auditProjectResultAttachmentInfo(data).then(res => {
        this.fullscreenLoading = false
        if (res.code == 1000) {
          this.$message({
            message: '提交成功',
            type: 'success'
          })
          setTimeout(function() {
            that.getFujian()
            that.showChaKan = false
            that.itemData = '' //单个附件的数据
            that.yijianValue = '' //意见值
            that.yijianContent = '' //意见内容
          }, 1200)
        }
      })
    },
    changeOpionionType() {
      if (this.yijianValue == 'NO_PROBLEM') {
        this.isOpinionValueShow = false
      } else {
        this.isOpinionValueShow = true
      }
    },
    //获取意见类型
    getOpinionType() {
      getOpinionType().then(res => {
        this.cuowuList = res.data
        this.cuowuListData = res.data
      })
    },
    //查看附件
    chaKanItem(item) {
      if (item.code == 'ATTACHMENT_5') {
        this.isDwg = true
        var that = this
        if (this.xianZhuangPath) {
          this.mapIframe = true
          this.$nextTick(() => {
            var iframe = document.getElementById('wode')
            iframe.onload = function() {
              that.loadIfram = 2
            }
          })
        } else {
          this.mapIframe = false
        }
      } else {
        this.isDwg = false
      }
      if (item.opinionStatus == 'VIEW') {
        this.yijianValue = item.opinionType
        this.yijianContent = item.opinion
        if (this.yijianValue == 'NO_PROBLEM') {
          this.isOpinionValueShow = false
        } else {
          this.isOpinionValueShow = true
        }
      } else {
        this.yijianContent = ''
        this.yijianValue = ''
        this.isOpinionValueShow = true
      }
      this.itemData = item
      this.showChaKan = true
    },
    //获取附件列表
    getFujian() {
      var data = {
        projectId: localStorage.getItem('projectId')
      }
      query_enclosure_info(data).then(res => {
        this.fujianList = res.data
      })
    },
    // 获取现状图
    getXianZhangData(data) {
      var _data = {
        landId: data.landId
      }
      if (this.nowType == 1) {
        queryLandEngineeringMap(_data).then(res => {
          this.xianZhuangFliePath = res.data.filePath
          this.yijianInfoData.yijianContent = res.data.opinion
          this.yijianInfoData.yijianValue = res.data.opinionType
          this.yijianInfoData.status = res.data.opinionStatus
        })
      } else if (this.nowType == 2) {
        queryLandPlanningMap(_data).then(res => {
          this.xianZhuangFliePath = res.data.filePath
          this.yijianInfoData.yijianContent = res.data.opinion
          this.yijianInfoData.yijianValue = res.data.opinionType
          this.yijianInfoData.status = res.data.opinionStatus
        })
      }
    },
    //前往查看现状图
    toSeeXianZhuang(row) {
      this.getXianZhangData(row)
    },
    //是否显示三个输入框
    isShowThreeInput(e) {
      if (e == 'NO') {
        this.showThreeFlag = true
      } else {
        this.showThreeFlag = false
      }
    },
    //关闭审查弹框
    handleClose() {
      this.shenchaFlag = false
    },
    //打开审查意见弹框
    shenchaYj(row) {
      this.itemDataForTable.landId = row.landId
      this.shenchaFlag = true
    },
    getData() {
      this.listLoading = true
      var data = {}
      var objArr = this.listQuery
      for (var index in objArr) {
        if (objArr[index] != '' && objArr[index] != null) {
          data[index] = objArr[index]
        }
      }
      queryLandResultAuditInfo(data).then(res => {
        this.listLoading = false
        this.list = res.data.rows
        this.total = res.data.total
      })
    },
    //改变每页显示条数
    handleSizeChange(e) {
      this.listQuery.size = e
      this.getData()
    },
    //改变页码
    handleCurrentChange(num) {
      this.listQuery.page = num
      this.getData()
    },
    changeLnglat(scope) {
      this.$refs.tdMap.changePkPosition(scope.$index)
    }
  }
}
</script>
<style lang="scss" scoped>
#qianqichjgcs /deep/ .el-tabs__nav-wrap::after {
  height: 1px;
}
#qianqichjgcs .mapBox {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
#qianqichjgcs .mapBox_right {
  width: 85%;
  height: 600px;
}
#qianqichjgcs .ditudanghang {
  background: #f2f2f2;
  height: 40px;
  border-bottom: 1px solid #e9e9e9;
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #4d4d4d;
  line-height: 40px;
}
#qianqichjgcs .fujianList {
  margin-top: 30px;
  float: left;
  width: 25%;
  box-sizing: border-box;
  margin-right: 3%;
}
#qianqichjgcs .fujianList_item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 30px;
}
.chaKanBox {
  float: left;
  width: 70%;
  box-sizing: border-box;
}
#qianqichjgcs .fujianList_item p {
  width: 300px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  color: #444;
}
#qianqichjgcs .dachuShenChaBox {
  position: relative;
}
#qianqichjgcs .dachuShenCha {
  position: absolute;
  right: 0;
  top: 4px;
  display: flex;
}
#qianqichjgcs .dachuShenCha .dachuShenCha_item {
  font-size: 14px;
  color: #4d4d4d;
  cursor: pointer;
}
#qianqichjgcs .dachuShenCha .dachuShenCha_item:first-child {
  margin-right: 35px;
}
.showDetail {
  display: flex;
  justify-content: space-between;
}
.chaKanBox_right_select {
  display: flex;
  align-items: center;
}
.chaKanBox_right_select p {
  font-size: 14px;
  color: #444;
  margin-right: 15px;
}
.chaKanBox_left {
  width: 70%;
  margin-right: 3%;
  height: calc(100vh - 250px);
}
.chaKanBox_right {
  width: 27%;
}
.chaKanBox_right_item {
  margin-bottom: 20px;
}
.chaKanBox_right_item_textarea {
  width: 100%;
}
.shenchaItem {
  display: flex;
  align-items: center;
  margin: 0 20px;
}
.shenchaItem p {
  width: 230px;
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}
.shenChaTanKuang /deep/ .el-dialog {
  width: 500px;
}
.shenchaItem_item_textarea {
  width: 100%;
}
.shenchaItem_item_noFlex p {
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}
.shenchaItem_small {
  margin-top: 20px;
}
.shenchaItem_small p {
  width: 100px;
}
.shenchaItem_item_input {
  width: 260px;
}

/deep/ .el-tree-node__label {
  margin-left: 10px;
}

#qianqichjgcs .CAD /deep/ .el-button--medium {
  border-radius: 4px 0 0 4px;
}

.iframeLoad {
  display: flex;
  font-size: 35px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.bgFujian {
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.fujianTitle {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
}
.fujianContent {
  margin-left: 30px;
  background: #f5f8fa;
  width: 90%;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fujianName {
  font-size: 14px;
  font-weight: bold;
  color: #606266;
  cursor: pointer;
  margin-right: 20px;
  display: flex;
  align-items: center;
  width: 80%;
}
.fujianName .fujianNamePdf {
  margin: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.fujianName .icon {
  display: block;
  font-size: 20px;
  margin-right: 10px;
  color: #409eff;
}

.isHover {
  color: #409eff;
  font-size: 13px;
  width: 50px;
}
.isHover span {
  padding: 0px 3px;
  margin: 3px 5px 3px 0;
  cursor: pointer;
  display: block;
  float: left;
}
</style>
